class RealNameModel {
  int code;
  String msg;
  List<RealNameData> data;

  RealNameModel({this.code, this.msg, this.data});

  RealNameModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    if (json['data'] != null) {
      data = new List<RealNameData>();
      json['data'].forEach((v) { data.add(new RealNameData.fromJson(v)); });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class RealNameData {
  int id;
  String phone;
  String nickName;
  int sex;
  Imgs imgs;
  Post post;

  RealNameData({this.id, this.phone, this.nickName, this.sex, this.imgs, this.post});

  RealNameData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    phone = json['phone'];
    nickName = json['nickName'];
    sex = json['sex'];
    imgs = json['imgs'] != null ? new Imgs.fromJson(json['imgs']) : null;
    post = json['post'] != null ? new Post.fromJson(json['post']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['phone'] = this.phone;
    data['nickName'] = this.nickName;
    data['sex'] = this.sex;
    if (this.imgs != null) {
      data['imgs'] = this.imgs.toJson();
    }
    if (this.post != null) {
      data['post'] = this.post.toJson();
    }
    return data;
  }
}

class Imgs {


  Imgs({
    String img1,
    String img2,
    String img3,
});

Imgs.fromJson(Map<String, dynamic> json) {
}

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  return data;
}
}

class Post {
  int id;
  Null userInfo;
  int postType;
  String postContent;
  String postVideoUrl;
  String postCoverUrl;
  Null postGeo;
  String tencentFileId;

  Post({this.id, this.userInfo, this.postType, this.postContent, this.postVideoUrl, this.postCoverUrl, this.postGeo, this.tencentFileId});

  Post.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userInfo = json['userInfo'];
    postType = json['postType'];
    postContent = json['postContent'];
    postVideoUrl = json['postVideoUrl'];
    postCoverUrl = json['postCoverUrl'];
    postGeo = json['postGeo'];
    tencentFileId = json['tencentFileId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['userInfo'] = this.userInfo;
    data['postType'] = this.postType;
    data['postContent'] = this.postContent;
    data['postVideoUrl'] = this.postVideoUrl;
    data['postCoverUrl'] = this.postCoverUrl;
    data['postGeo'] = this.postGeo;
    data['tencentFileId'] = this.tencentFileId;
    return data;
  }
}
